<div class="SipeiMain_r fr">
    <h2 class="clearfix fonts_18 height45 fontc_444"><?php echo $this->title;?></h2>
    <div class="clearfix back_bgf border_3 border_c pr30 pt20 pb20 height32 fontc_666">
       <form class="clearfix pb10" action="<?php echo $this->createUrl('/st/default/nojoincollect')?>" id="myForm" method="POST" target="ajax-frame"><!--target="ajax-frame"-->
            <table>
                <tbody>
                    <tr>
                        <td width="200" align="right" class="pt10 pr5">考试项目：</td>
                        <td width="558" class="pt10">
                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3">
                                <span class="fl select_shelter" >
                                    <select class="fl fontc_666" name="exam_id" id="exam_id">
                                    	<?php if (isset($examAll) && !empty($examAll)):?>
                      					<?php foreach($examAll as $value):?>
                        					<option value="<?php echo $value['exam_id']?>"><?php echo $value['exam_term_name']?></option>
                        				<?php endforeach;?>
                        				<?php else :?>
                        				<option value="">没有项目</option>
                        				<?php endif;?>
                      				</select>
                                </span>
                            </span>
                            <span class="fl standard_select pt5 pr7 pb5 pl3  border_3" id="s_status" style="margin-left:10px;height:18px;line-height: 18px">
                                <span class="fl select_shelter" >
                                </span>
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="pt10 pr5">不参加统计数据规则：</td>
                        <td class="pt10">
                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3">
                                <span class="fl select_shelter">
                                    <select class="fl fontc_666" name="no_join_id">
                                    	<?php if (isset($roleAll) && !empty($roleAll)):?>
										
										<option value="0">不使用统计规则</option>
										
                      					<?php foreach($roleAll as $value):?>
											
                        					<option value="<?php echo $value['id']?>"><?php echo $value['name']?></option>
                        				<?php endforeach;?>
                        				<?php else :?>
                        				<option value="">没有规则</option>
                        				<?php endif;?>
                      				</select>
                                </span>
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan='2' class="pt10 text_align">
                            <input type="submit" name="submit" value="汇总" class="b_a_n border_3 back_bgfb w80 height32 fontc_FFF fonts_12 mr10 cursor" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>            
</div>
<script>
    function istotal(){
       var exam_id = $("#exam_id").val();
       $.post(
            "/st/default/examrule", 
            { "exam_id": exam_id },
            function(data){
                $("#s_status").html(data)
            }, 
            "text"
       );
    }
    $("#exam_id").change(function(){
         istotal();
    })
    istotal();
</script>
<iframe src='' style="display:none" name='ajax-frame'></iframe>